package com.zhou.sys.common.sso.common.captcha.text.renderer;

import com.zhou.sys.common.sso.common.captcha.color.ColorFactory;
import com.zhou.sys.common.sso.common.captcha.font.FontFactory;

import java.awt.image.BufferedImage;


/**
 * 文本渲染接口
 */
public interface TextRenderer {

	void setLeftMargin(int leftMargin);

	void setRightMargin(int rightMargin);

	void setTopMargin(int topMargin);

	void setBottomMargin(int bottomMargin);

	void draw(String text, BufferedImage canvas, FontFactory fontFactory, ColorFactory colorFactory);

}
